<include file="public@storage"/>
<style>
    form {
        margin-top: 100px;
        padding-left: 50px;
        padding-right: 50px;
    }
</style>
</head>
<body>
<form class="form-horizontal table" id="form" action="{:url('storage/Supplier/addSupplier')}"  method="get"  >
    <div class="panel panel-primary">
        <div class="panel-heading">
            <h3 class="panel-title">添加厂商</h3>
        </div>
        <div class="panel-body">
            <div class="form-group">
                <div class="col-md-2 control-label">
                    <label for="supplierId">厂商编码：</label>
                </div>
                <div class="col-md-2">
                    <input type="text" name="supplier_id" id="supplierId" value="{$supplierId}" class="form-control" placeholder="必须填"
                           required="required" autocomplete="off" readonly="readonly">
                </div>

                <div class="col-md-2 control-label">
                    <label for="companyName">厂商名：</label>
                </div>
                <div class="col-md-2">
                    <input type="text" name="company_name" id="companyName" class="form-control" placeholder="必须填"
                           autocomplete="off" required="required">
                    <span id="companyNameError" style="color: red"></span>
                </div>

                <div class="col-md-2 control-label">
                    <label for="companyAddress">厂商地址：</label>
                </div>
                <div class="col-md-2">
                    <input type="text" name="company_address" id="companyAddress" class="form-control" >
                </div>
            </div>
        </div>
        <div class="form-group text-center">
            <button type="submit" class="mui-btn mui-btn--raised mui-btn--primary" id="submit">添加</button>
            &nbsp; &nbsp;
            <button type="button" class="mui-btn mui-btn--raised mui-btn--primary" onclick="history.go(-1)">取消</button>
        </div>
    </div>
</form>
</body>
<script src="__STATIC__/storage/js/supplier/add.js"></script>
</html>